import request from '@/utils/request'

// 查询水质专题列表
export function listDispatchWaterQualitySpecialSubject(query) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/list',
    method: 'get',
    params: query
  })
}

// 查询水质专题详细
export function getDispatchWaterQualitySpecialSubject(waterQualitySpecialSubjectId) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/' + waterQualitySpecialSubjectId,
    method: 'get'
  })
}

// 新增水质专题
export function addDispatchWaterQualitySpecialSubject(data) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject',
    method: 'post',
    data: data
  })
}

// 修改水质专题
export function updateDispatchWaterQualitySpecialSubject(data) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject',
    method: 'put',
    data: data
  })
}

// 删除水质专题
export function delDispatchWaterQualitySpecialSubject(waterQualitySpecialSubjectId) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/' + waterQualitySpecialSubjectId,
    method: 'delete'
  })
}
